package com.splant.android.smart.UILevel;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.FragmentTransaction;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/3/21.
 */

public class System_ViewPagerFragment_Adapter extends FragmentPagerAdapter {

    private List<Fragment> mList = new ArrayList<Fragment>();

    private FragmentManager mFragmentManager;
    private FragmentTransaction mCurTransaction;
    public System_ViewPagerFragment_Adapter(FragmentManager fm , List<Fragment> list) {
        super(fm);
        mFragmentManager=fm;
        this.mList = list;
    }
    @Override
    public Fragment getItem(int position) {
        return mList.get(position);
    }
    @Override
    public int getCount() {
        return mList != null ? mList.size() : 0;
    }

    @Override
    public int getItemPosition(Object object) {
        return POSITION_NONE;
    }



}